package com.hooware.dao;

import com.hooware.domain.SysLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ILogDao {

    @Select("select * from syslog")
    List<SysLog> findAll();

    @Insert("insert into syslog values(default, #{visitTime},#{username},#{ip},#{url},#{executionTime},#{method})")
    void saveLog(SysLog sysLog);
}
